package com.cn.crmsystem.mapper.approveMapper;
import com.cn.crmsystem.pojo.Approve;
import com.cn.crmsystem.pojo.Login;
import com.cn.crmsystem.pojo.Travel;
import com.cn.crmsystem.pojo.User;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface TravelMapper {
	//出差表插入
	int InsertTravel (Travel travel);
	//关联插入审批表
	int InsertApprove (Integer leader,Integer travelid,Integer type);
	//通过拒绝 update Travel表
       int UpdateTravel(Integer appid,Integer state);
      //领导名查询
	User  selectleader(Integer leaderid);
	//我发出查询出差列表
	List<Approve> selectMYTravel (Integer userid);
	//待我审核列表
	List<Approve> selectApproveTravel (Integer userid);
	//领导id查询
	Integer selectleaderId(Integer userid);
	//删除出差表
	int DeleteTravel (Integer travelid);
	//出差id查询
	int travelid(Integer appid);
	//删除审核表
	int DeleteApprove (Integer appid);
	//我的条件查询
	List<Approve> selectMyCondition(Integer userid, String state);
	//我审核条件查询
	List<Approve> selectApproveCondition(Integer userid, String state);
}
